package com.w2cx.selenium.testCase;

import org.testng.Assert;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;

public class testPoiCategoryManage extends CaseBase {

    @Test
    @Parameters({"poiName"})
    public void testPoiAdd(String poiName){

        //测试添加POI分类
        pcmp.addPoiCategory(poiName);
        //断言
        Assert.assertTrue(pcmp.addPoiCateSuccess(poiName),"添加poi分类失败！");
        System.out.println("添加poi分类成功！");

    }


    @Test
    @Parameters({"poiName"})
    public void testPoiDel(String poiName){
        pcmp.delPoiCategory(poiName);
        Assert.assertTrue(pcmp.delPoiSuccess(poiName),"删除poi分类失败！");
        System.out.println("删除poi分类成功！");
    }


}
